package com.cy.jxc.controller;

import com.cy.jxc.entity.Resposity;
import com.cy.jxc.service.ResposityService;
import com.cy.jxc.vo.JsonResult;
import com.fasterxml.jackson.databind.util.JSONPObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/resposity/")
public class ResposityController {
    @Autowired
    ResposityService resposityService;
    @RequestMapping("findallresp")
    public JsonResult findRespAll(){
        List<Resposity> rows = resposityService.findRespAll();
        return new JsonResult(rows);

    }
}
